package com.tang.controller;

import com.google.common.collect.Maps;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Tang
 * @classname TestController
 * @description [  ]
 * @date 2021/9/10 15:22
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/")
    public Map<String, String> index() {
        HashMap<String, String> hashMap = Maps.newHashMap();
        hashMap.put("page", "test");
        hashMap.put("code", "200");
        return hashMap;
    }

}